import { defineStore } from 'pinia';
import { ref, reactive } from 'vue'
export const useStoreZhs = defineStore("storeZhs", () => {
    const person = reactive({
        name: "张三",
        age: 18
    });
    const count = ref(100);
    const changeCount = () => {
        count.value++        
    }
    return {
        person,
        count,
        changeCount
    }
},{
    persist:true
})
